WPForms\Forms\Fields\PaymentTotal\Field B

Total Complexity 86
Dependencies 1
Dependents 0
Total lines 883
Lines of code 402
Logical lines of code 176
Comment lines 339
Methods 27
Properties 0

Methods 27

Method Rating Maintainability Complexity Lines of code
prepare_payment_field_choices()
A
49 12 27
field_display()
A
44 9 42
prepare_payment_field_single()
S
51 6 26
get_classic_dropdown_default_choice_key()
S
60 6 12
prepare_payment_fields_data()
S
51 5 25
order_summary_confirmation()
S
55 5 19
calculate_total_static()
S
58 5 15
summary_option()
S
49 3 37
field_properties()
S
57 4 15
validate()
S
69 4 5
prepare_builder_preview_data()
S
48 1 35
field_options()
S
51 1 32
is_conditionally_hidden()
S
72 3 5
preview_field_class()
S
66 3 9
get_payment_field_min_quantity()
S
69 3 6
format()
S
60 2 12
summary_option_notice()
S
63 2 11
array_key_first()
S
74 2 4
field_preview()
S
59 1 15
add_confirmation_setting()
S
60 1 15
get_payment_field_single_amount()
S
70 2 6
is_summary_enabled()
S
79 1 3
hooks()
S
65 1 8
calculate_total()
S
78 1 3
is_fallback_population_allowed()
S
82 1 3
is_dynamic_population_allowed()
S
82 1 3
init()
S
65 1 9